<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>易百米余额查询</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
	<#include "../template/include/assign.ftl">
	<#include "../template/include/source.ftl">
	<#include "../template/template_listPage.ftl">
	    <link href="${web_static}/admin/css/list.css" rel="stylesheet" type="text/css"/>
	    <style type="text/css">
	        .page {
	            float: right;
	            padding-top: 15px;
	            margin-right: 15px;
	        }
	    </style>
	
 	<script type="text/javascript">
		 $().ready(function () {
            var $validateErrorContainer = $("#validateErrorContainer");
            var $validateErrorLabelContainer = $("#validateErrorContainer ul");
            var $validateForm = $("#inputForm");
            var $tab = $("#tab");
            // Tab效果
            $tab.tabs(".tabContent", {
                tabs:"input"
            });
			 // 表单验证
            $validateForm.validate({
                errorContainer:$validateErrorContainer,
                errorLabelContainer:$validateErrorLabelContainer,
                wrapper:"li",
                errorClass:"validateError",
                ignoreTitle:true,
                rules:{
                    "proQuery.oid_loginid":{
                        required:true
                    }

                },
                messages:{
                    "proQuery.oid_loginid":{
                        required:"请选择您的合作方的易百米商户ID！"
                    }

                },
                submitHandler:function (form) {
                    form.submit();
                }
            });
		<#if actionErrors??&&(actionErrors?size > 0)>
            $.dialog({type:"warn", content:"<#list errorMessages as list>${list}<br></#list>",
                modal:true, autoCloseTime:3000});
        </#if>
            $('#oid_loginid').val('<#if proQuery??>${(proQuery.oid_loginid)!}</#if>');
        });
    </script>
</head>

<body class="list">
	<div class="body">
		<div class="listBar">
        	<h1><span class="icon">&nbsp;</span>易百米余额查询&nbsp;</h1>
	    </div>
	    <div style="display: none;" id="validateErrorContainer" class="validateErrorContainer">
	        <div class="validateErrorTitle">以下信息填写有误,请重新填写</div>
	        <ul></ul>
	    </div>
		<form id="inputForm" class="validate" action="${web_base}/game/ebai_mi!queryBalance.htm" query="proQuery"
		          method="post">
		        <div class="operateBar">
		            请选择:&nbsp;
		            <select name="proQuery.oid_loginid" id="oid_loginid" >
		                <option value="" selected="selected">请选择合作方的易百米商户ID</option>
		                <#--
		                <#if proInfo?? && proInfo.retcode?? >
		                    <option value="${proInfo.oid_loginid!}">${proInfo.oid_loginid!}</option>
		            </#if>
		                -->
		            <option value="${proInfo.oid_loginid!}">${proInfo.oid_loginid!}</option>
		            </select>
		            <input type="submit" id="searchButton" class="addButton" value="查询"/>
		        </div>
    	</form>
		<table class="listTable">
		        <tr>
		            <th width="200">
		                <span class="sort" name="oid_loginid">合作方的易百米商户ID</span>
		            </th>
		            <th>
		                <span class="sort" name="amt_balcur">余额(元)</span>
		            </th>
		            <th>
		                <span class="sort" name="retcode">响应消息码</span>
		            </th>
		            <th>
		                <span class="sort" name="retmsg">响应消息说明</span>
		            </th>
		        </tr>
		    <#if proInfo?? && proInfo.retcode??>
		        <tr>
		            <td>
		            ${(proInfo.oid_loginid)!}
		            </td>
		            <td>
		            ${(proInfo.amt_balcur)!}
		            </td>
		            <td>
		           		 ${(proInfo.retcode)!}
		            </td>
		            <td>
		            	${(proInfo.retmsg)!}
		            </td>
		        </tr>
		    </#if>
    </table>
	<#if proInfo?? && !proInfo.retcode??>
		<div class="noRecord">
    	请选择合作方编号进行查询！
    	</div>
	</#if>
	</div>
</body>
</html>

